package org.csu.mypetstoreback.persistence;

import org.csu.mypetstoreback.domain.Order;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {
    List<Order> getOrders();

    List<Order> getWaitOrders();

    List<Order> getDeliveredOrders();

    List<Order> getOrdersByUserId(String username);

    Order getOrder(int orderId);

    void deleteOrder(int orderId);

    void deleteOrderStatus(int orderId);

    void updateOrder(Order order);

    void updateOrderStatus(Order order);
}
